import React, { Component } from 'react';
import store from '../../store';
import FootAudio from '../component/FootAudio'


class Layout extends Component {
    constructor(props) {
        super(props)

        this.state = {

        }
    }

    render() {  
        console.log('redux数据', store.getState());
        
        return (
            <div>
                {this.props.children}
                {
                    Object.keys(store.getState().music).length!==0 ? <FootAudio footMsg={store.getState().inputValue.id}/>:null
                }
            </div>
        );
    }
}

export default Layout;